package com.wanmait.schedule.controller;

import com.github.pagehelper.PageInfo;
import com.wanmait.schedule.entity.Log;
import com.wanmait.schedule.entity.Teacher;
import com.wanmait.schedule.service.LogService;
import com.wanmait.schedule.util.AjaxResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 操作日志表 前端控制器
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@RestController
@RequestMapping("/manage/log")
public class LogController {
 @Resource
    private LogService logService;
    //列表分页
    @PostMapping("list")
    public AjaxResult list(@RequestBody Log log , Integer pageNum ){
       PageInfo<Log> pageInfo = logService.list(log,pageNum);
       return AjaxResult.success(pageInfo);

    }


}
